import axios from '../../axios.js';

const orders = {
    addOrders: function (list) {
        return axios({
            url: '/orders/addOrder',
            method: "post",
            data: list
        })
    },
    searchById: function (id) {
        return axios({
            url: '/orders/searchById',
            method: "post",
            data: { id }
        })
    },
    //改变订单
    changeOrdersState: function (id) {
        return axios({
            url: '/orders/changeOrdersState',
            method: "post",
            data: { id }
        })
    },
}
export default orders;